package com.example.drink_order_system.entity;

import java.util.ArrayList;

public class discount_quan {
    private String detail;
    private String start_date;
    private String end_date;
    private int score;
    private int tag;
    private static ArrayList<discount_quan> discountQuans;
    private static ArrayList<discount_quan> show_discount;
    static {
        show_discount = new ArrayList<>();
        discountQuans = new ArrayList<>();
        show_discount.add(new discount_quan("1元优惠券",500));
        show_discount.add(new discount_quan("2元优惠券",1000));
        show_discount.add(new discount_quan("2.5元优惠券",1500));
        show_discount.add(new discount_quan("3元优惠券",2000));
        show_discount.add(new discount_quan("4元优惠券",2500));
        show_discount.add(new discount_quan("5元优惠券",3000));
        show_discount.add(new discount_quan("免单一次（仅限20元以下）",5000));
    }
    public discount_quan(String detail,int score,String start_date,String end_date,int tag){
        this.detail = detail;
        this.score = score;
        this.start_date = start_date;
        this.end_date = end_date;
        this.tag = tag;
    }
    private discount_quan(String detail,int score){
        this.detail = detail;
        this.score = score;
    }

    public String getDetail() {
        return detail;
    }

    public int getScore() {
        return score;
    }

    public static ArrayList<discount_quan> getDiscountQuans() {
        return discountQuans;
    }

    public static ArrayList<discount_quan> getShow_discount() {
        return show_discount;
    }

    public String getStart_date() {
        return start_date;
    }

    public String getEnd_date() {
        return end_date;
    }

    public void setEnd_date(String end_date) {
        this.end_date = end_date;
    }

    public void setScore(int score) {
        this.score = score;
    }
    public static void add_discount_quan(discount_quan dis){
        discountQuans.add(dis);
    }

    public static void setDiscountQuans(ArrayList<discount_quan> discountQuans) {
        discount_quan.discountQuans = discountQuans;
    }

    public int getTag() {
        return tag;
    }
}
